package com.atguigu.gulimall.gulimallproduct.fallback;

import com.atguigu.common.exception.BizCodeEnum;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.gulimallproduct.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @Author: Zjn ; Bring it on !!!
 * @Date: 2021/12/7 0007 10:32
 * Note:
 */
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckilInfo(Long skuId) {
        return R.error(BizCodeEnum.TOO_MANY_REQUEST.getCode(),BizCodeEnum.TOO_MANY_REQUEST.getMsg());
    }
}
